import request from '@/utils/request'

export function update(data, method) {
  return request({
    url: 'api-generator/table',
    data,
    method: method
  })
}

export function del(id) {
  return request({
    url: 'api-generator/table/' + id,
    method: 'delete'
  })
}
